export interface listParams {
  page: number;
  pageSize: number;
}

export interface listData {
  id?: number;
  name: string;
  companyId?: number;
  addAccountId?: number;
  addAccountName?: string;
  addTime?: string;
  accountCounts?: number;
  menuIds: number[];
}

export interface RolelistReturn {
  counts: number;
  pageSize: number;
  list: listData[];
}

// 权限列表
export interface MenuData {
  id: number;
  name: string;
  icon: string;
  url: string;
  pathName: string;
  pid: number;
  sort: number;
  type: number;
  isButton: number;
  children?: MenuData[];
}

// 角色添加
export interface RoleAddParams {
  name: string;
  menuIds: number[];
}
